@model AlphaWebsite.Models.WeddingEvents

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.EventName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.EventName)
    @Html.ValidationMessageFor(model => model.EventName)
</div>

<div class="editor-label">
    UserWeddingPlan
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.UserWeddingPlanID, ((IEnumerable<AlphaWebsite.Models.UserWeddingPlan>)ViewBag.PossibleUserWeddingPlans).Select(option => new SelectListItem {
        Text = Html.DisplayTextFor(_ => option).ToString(), 
        Value = option.UserWeddingPlanID.ToString(),
        Selected = (Model != null) && (option.UserWeddingPlanID == Model.UserWeddingPlanID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.UserWeddingPlanID)
</div>
